<%-- 
    Document   : commentsView
    Created on : 10-mar-2012, 11:26:56
    Author     : Alvaro
--%>

<%@page import="java.util.ArrayList"%>
<%@page import="java.util.List"%>
<%@page import="classes.comment"%>
<%@page import="classes.AdminDB"%>
<%ArrayList<comment> comentarios = (ArrayList<comment>) session.getAttribute("listaDecomentarios");%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="shopStyles.css" rel="stylesheet" type="text/css">

        <title>JSP Page</title>
    </head>
    <body>
    <div class="container">
<div class="header"><!-- end .header --></div>
            <div class="content">
                <h1 align="center">User Comements</h1>

              <!-- end .content --></div>
            <p><!-- end .container --></p>
                    <div align="center">
                      <%
		       if(comentarios == null)
                    {%>
                    </div>
                    <label>
                      <div align="center">There are not comments!</div>
                </label>
                <div align="center">
	                  <%}
			else{
			for(comment cl: comentarios){%>
	                  <table width="373">
	                    <tr>
	                      <td width="87"><label>
                            <div align="right"><%=cl.getName()%> says:</div>
                          </label></td>
                          <td width="173" class="popup"><label>
	                        <div align="center"><%=cl.getComment()%></div>
	                      </label></td>
                        </tr>
	                    </table>
	                  <%}
			}%>        
          </div>
          <br><br><br><p align="center"><a href="index.jsp">go home...</a></p>
        </div>
        
            
        
        
        
    </body>
</html>

